/**
 * Sample SQLiteOpenHelper
 * @author YUN
 */
package sample.provider;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySQLiteOpenHelper extends SQLiteOpenHelper {
	private static final String DATABASE_NAME = "sample.provider.MySQLiteOpenHelper.db";
	private static final int DATABASE_VERSION = 1;

	public MySQLiteOpenHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		new MyDatabase.PlayLists().create(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		new MyDatabase.PlayLists().drop(db);
		onCreate(db);
	}
}
